import request from '@/utils/request'

// 保存数据源
export function saveDatasource(data) {
  return request({
    url: '/sys/datasource/save',
    method: 'post',
    data: data
  })
}
// 查询数据源权限
export function listDatasourceAuth(orgId) {
  return request({
    url: '/sys/datasource/listAuth',
    method: 'get',
    params: {orgId : orgId}
  })
}
// 删除数据源
export function deleteDatasource(id) {
  return request({
    url: '/sys/datasource/delete',
    method: 'delete',
    data: { str: id }
  })
}
